package com.sir.tao.carhire.entity.table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sir.tao.carhire.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author dyy
 * @data 2022/1/5 11:22
 * @description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("car")
public class CarEntity extends BaseEntity {


    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String numberPlate;

    private String carTypeId;

    private Integer flat;

    private BigDecimal price;

    private String company;

    private Integer isRent;

    private String img;

}
